package com.example.lib_base

import android.os.Bundle
import androidx.databinding.ViewDataBinding
import com.example.lib_base.loadutil.ChildToMainUtil

abstract class BaseNetActivity<T : ViewDataBinding>:BaseActivity<T>() {


    abstract fun showLoading()
    abstract fun closeLoading()

    protected abstract val mMainCallBack: ChildToMainUtil.MainCallBack

    private val mChildToMainUtil = ChildToMainUtil()

    protected val mChildCallBack = mChildToMainUtil.childCallBack

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mChildToMainUtil.mainCallBack = mMainCallBack
    }

}